package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontAccountBalance table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontAccountBalance"
 */

public abstract class BaseAnteFrontAccountBalance  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontAccountBalance";
	public static String PROP_CUR_PRESENT_MONEY = "CurPresentMoney";
	public static String PROP_MOD_PRESENT_MONEY = "ModPresentMoney";
	public static String PROP_CUR_PRICE_MONEY = "CurPriceMoney";
	public static String PROP_LAST_TIME = "LastTime";
	public static String PROP_LOGIN_ID = "LoginId";
	public static String PROP_PRE_PRICE_MONEY = "PrePriceMoney";
	public static String PROP_ID_CARD = "IdCard";
	public static String PROP_MAX_DETAIL_ID = "MaxDetailId";
	public static String PROP_MOD_PRICE_MONEY = "ModPriceMoney";
	public static String PROP_NAME = "Name";
	public static String PROP_PRE_PRESENT_MONEY = "PrePresentMoney";
	public static String PROP_COUNTER_ID = "CounterId";
	public static String PROP_ACCOUNT_ID = "AccountId";
	public static String PROP_STATE = "State";
	public static String PROP_PRE_BASE_MONEY = "PreBaseMoney";
	public static String PROP_MOD_BASE_MONEY = "ModBaseMoney";
	public static String PROP_CUR_BASE_MONEY = "CurBaseMoney";
	public static String PROP_CARD_TYPE = "CardType";


	// constructors
	public BaseAnteFrontAccountBalance () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontAccountBalance (java.lang.Integer accountId) {
		this.setAccountId(accountId);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontAccountBalance (
		java.lang.Integer accountId,
		java.lang.String counterId,
		java.lang.String loginId,
		java.lang.Integer cardType,
		java.lang.String idCard,
		java.lang.String name,
		java.lang.Integer preBaseMoney,
		java.lang.Integer prePriceMoney,
		java.lang.Integer prePresentMoney,
		java.lang.Integer modBaseMoney,
		java.lang.Integer modPriceMoney,
		java.lang.Integer modPresentMoney,
		java.lang.Integer curBaseMoney,
		java.lang.Integer curPriceMoney,
		java.lang.Integer curPresentMoney,
		java.lang.Integer state,
		java.lang.Integer maxDetailId,
		java.util.Date lastTime) {

		this.setAccountId(accountId);
		this.setCounterId(counterId);
		this.setLoginId(loginId);
		this.setCardType(cardType);
		this.setIdCard(idCard);
		this.setName(name);
		this.setPreBaseMoney(preBaseMoney);
		this.setPrePriceMoney(prePriceMoney);
		this.setPrePresentMoney(prePresentMoney);
		this.setModBaseMoney(modBaseMoney);
		this.setModPriceMoney(modPriceMoney);
		this.setModPresentMoney(modPresentMoney);
		this.setCurBaseMoney(curBaseMoney);
		this.setCurPriceMoney(curPriceMoney);
		this.setCurPresentMoney(curPresentMoney);
		this.setState(state);
		this.setMaxDetailId(maxDetailId);
		this.setLastTime(lastTime);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer accountId;

	// fields
	private java.lang.Integer cardType;
	private java.lang.String counterId;
	private java.lang.Integer curBaseMoney;
	private java.lang.Integer curPresentMoney;
	private java.lang.Integer curPriceMoney;
	private java.lang.String idCard;
	private java.util.Date lastTime;
	private java.lang.String loginId;
	private java.lang.Integer maxDetailId;
	private java.lang.Integer modBaseMoney;
	private java.lang.Integer modPresentMoney;
	private java.lang.Integer modPriceMoney;
	private java.lang.String name;
	private java.lang.Integer preBaseMoney;
	private java.lang.Integer prePresentMoney;
	private java.lang.Integer prePriceMoney;
	private java.lang.Integer state;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="AccountId"
     */
	public java.lang.Integer getAccountId () {
		return accountId;
	}

	/**
	 * Set the unique identifier of this class
	 * @param accountId the new ID
	 */
	public void setAccountId (java.lang.Integer accountId) {
		this.accountId = accountId;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CardType
	 */
	public java.lang.Integer getCardType () {
		return cardType;
	}

	/**
	 * Set the value related to the column: CardType
	 * @param cardType the CardType value
	 */
	public void setCardType (java.lang.Integer cardType) {
		this.cardType = cardType;
	}



	/**
	 * Return the value associated with the column: CounterId
	 */
	public java.lang.String getCounterId () {
		return counterId;
	}

	/**
	 * Set the value related to the column: CounterId
	 * @param counterId the CounterId value
	 */
	public void setCounterId (java.lang.String counterId) {
		this.counterId = counterId;
	}



	/**
	 * Return the value associated with the column: CurBaseMoney
	 */
	public java.lang.Integer getCurBaseMoney () {
		return curBaseMoney;
	}

	/**
	 * Set the value related to the column: CurBaseMoney
	 * @param curBaseMoney the CurBaseMoney value
	 */
	public void setCurBaseMoney (java.lang.Integer curBaseMoney) {
		this.curBaseMoney = curBaseMoney;
	}



	/**
	 * Return the value associated with the column: CurPresentMoney
	 */
	public java.lang.Integer getCurPresentMoney () {
		return curPresentMoney;
	}

	/**
	 * Set the value related to the column: CurPresentMoney
	 * @param curPresentMoney the CurPresentMoney value
	 */
	public void setCurPresentMoney (java.lang.Integer curPresentMoney) {
		this.curPresentMoney = curPresentMoney;
	}



	/**
	 * Return the value associated with the column: CurPriceMoney
	 */
	public java.lang.Integer getCurPriceMoney () {
		return curPriceMoney;
	}

	/**
	 * Set the value related to the column: CurPriceMoney
	 * @param curPriceMoney the CurPriceMoney value
	 */
	public void setCurPriceMoney (java.lang.Integer curPriceMoney) {
		this.curPriceMoney = curPriceMoney;
	}



	/**
	 * Return the value associated with the column: IdCard
	 */
	public java.lang.String getIdCard () {
		return idCard;
	}

	/**
	 * Set the value related to the column: IdCard
	 * @param idCard the IdCard value
	 */
	public void setIdCard (java.lang.String idCard) {
		this.idCard = idCard;
	}



	/**
	 * Return the value associated with the column: LastTime
	 */
	public java.util.Date getLastTime () {
		return lastTime;
	}

	/**
	 * Set the value related to the column: LastTime
	 * @param lastTime the LastTime value
	 */
	public void setLastTime (java.util.Date lastTime) {
		this.lastTime = lastTime;
	}



	/**
	 * Return the value associated with the column: LoginId
	 */
	public java.lang.String getLoginId () {
		return loginId;
	}

	/**
	 * Set the value related to the column: LoginId
	 * @param loginId the LoginId value
	 */
	public void setLoginId (java.lang.String loginId) {
		this.loginId = loginId;
	}



	/**
	 * Return the value associated with the column: MaxDetailId
	 */
	public java.lang.Integer getMaxDetailId () {
		return maxDetailId;
	}

	/**
	 * Set the value related to the column: MaxDetailId
	 * @param maxDetailId the MaxDetailId value
	 */
	public void setMaxDetailId (java.lang.Integer maxDetailId) {
		this.maxDetailId = maxDetailId;
	}



	/**
	 * Return the value associated with the column: ModBaseMoney
	 */
	public java.lang.Integer getModBaseMoney () {
		return modBaseMoney;
	}

	/**
	 * Set the value related to the column: ModBaseMoney
	 * @param modBaseMoney the ModBaseMoney value
	 */
	public void setModBaseMoney (java.lang.Integer modBaseMoney) {
		this.modBaseMoney = modBaseMoney;
	}



	/**
	 * Return the value associated with the column: ModPresentMoney
	 */
	public java.lang.Integer getModPresentMoney () {
		return modPresentMoney;
	}

	/**
	 * Set the value related to the column: ModPresentMoney
	 * @param modPresentMoney the ModPresentMoney value
	 */
	public void setModPresentMoney (java.lang.Integer modPresentMoney) {
		this.modPresentMoney = modPresentMoney;
	}



	/**
	 * Return the value associated with the column: ModPriceMoney
	 */
	public java.lang.Integer getModPriceMoney () {
		return modPriceMoney;
	}

	/**
	 * Set the value related to the column: ModPriceMoney
	 * @param modPriceMoney the ModPriceMoney value
	 */
	public void setModPriceMoney (java.lang.Integer modPriceMoney) {
		this.modPriceMoney = modPriceMoney;
	}



	/**
	 * Return the value associated with the column: Name
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: Name
	 * @param name the Name value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: PreBaseMoney
	 */
	public java.lang.Integer getPreBaseMoney () {
		return preBaseMoney;
	}

	/**
	 * Set the value related to the column: PreBaseMoney
	 * @param preBaseMoney the PreBaseMoney value
	 */
	public void setPreBaseMoney (java.lang.Integer preBaseMoney) {
		this.preBaseMoney = preBaseMoney;
	}



	/**
	 * Return the value associated with the column: PrePresentMoney
	 */
	public java.lang.Integer getPrePresentMoney () {
		return prePresentMoney;
	}

	/**
	 * Set the value related to the column: PrePresentMoney
	 * @param prePresentMoney the PrePresentMoney value
	 */
	public void setPrePresentMoney (java.lang.Integer prePresentMoney) {
		this.prePresentMoney = prePresentMoney;
	}



	/**
	 * Return the value associated with the column: PrePriceMoney
	 */
	public java.lang.Integer getPrePriceMoney () {
		return prePriceMoney;
	}

	/**
	 * Set the value related to the column: PrePriceMoney
	 * @param prePriceMoney the PrePriceMoney value
	 */
	public void setPrePriceMoney (java.lang.Integer prePriceMoney) {
		this.prePriceMoney = prePriceMoney;
	}



	/**
	 * Return the value associated with the column: State
	 */
	public java.lang.Integer getState () {
		return state;
	}

	/**
	 * Set the value related to the column: State
	 * @param state the State value
	 */
	public void setState (java.lang.Integer state) {
		this.state = state;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontAccountBalance)) return false;
		else {
			AnteFrontAccountBalance anteFrontAccountBalance = (AnteFrontAccountBalance) obj;
			if (null == this.getAccountId() || null == anteFrontAccountBalance.getAccountId()) return false;
			else return (this.getAccountId().equals(anteFrontAccountBalance.getAccountId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getAccountId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getAccountId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}